Skip to content

Conversation

helenul
Copy link
Member

@helenul helenul commented Nov 6, 2026

Changes

  • Reduce the search debounce on Explore Plants from 800 ms to 300 ms, and change the default delay in useDebounce to 300 ms.
  • Fix the known issue where the last letters of the profile text could be lost when switching pages right after typing. The profile text is now saved at once when a field loses focus, when the user leaves the profile page, and when the tab is reloaded or closed (pagehide). The same text is never saved twice.

Tests

  • Added tests in Profile.test.tsx for saving on blur, unmount and pagehide, and that the same text is not saved twice.
  • Updated useDebounce.test.ts, ExplorePage.test.tsx and the comment in uiExplorePlants.spec.ts to use 300 ms.

Documentation

  • Removed the issue from Known issues in the README.
  • Updated tests.md and quality.md with the new debounce values and the saving on blur and leaving the page.

…itten/updated related tests and updated related documentation
@helenul helenul requested a review from a team as a code owner November 6, 2026 17:03
@helenul helenul linked an issue Nov 6, 2026 that may be closed by this pull request
Copy link
Member

@ninaflaa ninaflaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@helenul helenul merged commit ada4572 into main Nov 9, 2026
0 of 4 checks passed
@helenul helenul deleted the 107-change-debounce-to-300400-ms branch November 9, 2026 09:55
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change debounce to 300/400 ms
2 participants